package vcp.client.utility;

/**
 * <p>
 * common class contains icon resources
 * </p>
 * 
 * @author VCP team
 * 
 */
public class Common
{

	/**
	 * Icon Resources
	 */
	public static final String ICON_CHECK_IN = "check_in.png";
	public static final String ICON_CHECK_OUT = "check_out.png";
	public static final String ICON_GO_BACK = "go_back.png";
	public static final String ICON_CONNECT_TO_NETWORK = "connect_to_network.png";
	public static final String ICON_ON_SITE = "on_site.png";
	public static final String ICON_ON_LINE = "online.png";
	public static final String ICON_WORKER = "worker.png";
	public static final String ICON_SUBSCRIBER = "subscriber.png";
	public static final String ICON_SINGLE_ORDER = "single_order.png";
	public static final String ICON_LOGIN = "login.png";
	public static final String ICON_SUBMIT = "submit.png";
	public static final String ICON_CANCEL = "cancel.png";
	public static final String ICON_EDIT = "edit.png";
	public static final String ICON_CALENDAR = "calendar.png";
	public static final String ICON_SAVE = "save.png";
	public static final String ICON_SEARCH = "search.png";

	public static final String BTN_SAVE_AS = "Save To PDF";
	public static final String BTN_LOGIN = "Login";
	public static final String BTN_ON_SITE = "On Site";
	public static final String BTN_CONNECT = "Connect";
	public static final String BTN_CHECK_IN = "Check In";
	public static final String BTN_CHECK_OUT = "Check Out";
	public static final String BTN_SUBSCRIBER = "Subscriber";
	public static final String BTN_SINGLE_ORDER = "Single Order";
	public static final String BTN_SUBMIT = "Submit";
	public static final String BTN_CANCEL = "Cancel";
	public static final String BTN_APPROVE = "Approve";
	public static final String BTN_REJECT = "Reject";
	public static final String BTN_EDIT = "Edit";
	public static final String BTN_UNDO = "Undo";
	public static final String BTN_LOT = "Lot";
	public static final String BTN_CANCEL_SUBSCRIPTION = "Cancel Subsc.";
	public static final String BTN_DEMO = "Demo";
	public static final String BTN_OK = "OK";
	public static final String BTN_SEARCH = "Search";
	public static final String BTN_SAVE = "Save";

	public static final String LBL_CONNECTED = "Connected";
	public static final String LBL_NOT_CONNECTED = "Not Connect";
	public static final String LBL_CURRENTLY_IN = "Currently in: ";
	public static final String LBL_CAR_ID = "Car ID:";

	public static final String LBL_FORGOT_PASSWORD = "Forgot Password?";
	public static final String RBTN_FULL_SUBSCRIBER = "Full Subscription";
	public static final String RBTN_CASUAL_SUBSCRIBER = "Casual Subscription";
	public static final String RBTN_ORDER_AHEAD_SUBSCRIBER = "Order Ahead Subscription";

	/**
	 * Navigation tabs for Workers
	 */
	public static final String TAB_INFO = "Information";
	public static final String TAB_GEN_REPORTS = "Gen. Reports";
	public static final String TAB_UPDATE_COSTS = "Update Costs";
	public static final String TAB_APPROVE_REQUEST = "Approve Costs";
	public static final String TAB_LOGOUT = "Logout";
	public static final String TAB_SITE_MAP = "Site Map";
	public static final String TAB_COMPLAINT_HANDLE = "Comp. Handle";
	public static final String TAB_STATISTICS = "Statistics";

	/**
	 * Navigation tabs for Customer
	 */
	public static final String TAB_ORDER_STATUS = "Order Status";
	public static final String TAB_CANCEL_ORDER = "Cancel Order";
	public static final String TAB_ACCOUNT_STATUS = "Acc. Status";
	public static final String TAB_FILL_COMPLAINT = "Fill Complaint";
	public static final String TAB_SUBSCRIBER = "Subscribe";
	public static final String TAB_SINGLE_USE = "Single Use";

	/**
	 * <p>
	 * user notifications class
	 * </p>
	 * 
	 * @author VCP team
	 * 
	 */
	public class UserNotification
	{
		public static final String WRONG_DATA = "Wrong data";
		public static final String CANNOT_SAVE_TO_PDF = "Cannot save to pdf";
		public static final String PASS_TO_REGULAR_CHECK_IN = "You will be passed to regular check in";
		public static final String CHECK_IN_WAS_REGISTERED = "Your check in was registered";
		public static final String CHECK_OUT_WAS_SUCCESFUL = "You succesfully checked out";
		public static final String UNABLE_TO_CREATE__NAME__SCREEN = "Unable to create %s screen!";
		public static final String UNABLE_TO_LOAD_DATA_TO__NAME__SCREEN = "Unable to load data to %s screen!";
		public static final String CANNOT_LOGIN = "Cannot login with inserted ID and password";
		public static final String USER_DOESNT_EXIST = "User doesn't exist in system";
		public static final String INCORRECT_PASSWORD = "Incorrect password";
		public static final String USER__ID__ALREADY_LOGGED_IN = "User %d already logged in";
		public static final String SESSION_TIME_OUT = "Session Timeout";
		public static final String CONNECTION_TO_SERVER_FAIL = "Error: Can't setup connection! Terminating client.";
		public static final String CANNOT_PERFORM_REQUEST = "Cannot perform request";
		public static final String FAIL_TO_SEND_TO_SERVER = "Fail to send! communication error with socket.";
		public static final String NOT_CORRECT_FORMAT_FOR__VALUE__ = "Not correct %s";
		public static final String FLOOR_RESET_CONFIRMATION = "Please select floor/s to undo:";
		public static final String CANNOT_FIND_SITE__IN_DB = "Cannot find %s in data base";
		public static final String PROBLEM_ACCORD_WITH_FORM_SUBMIT = "Problem accored when trying to fill form";
		public static final String USER_ALREADY_HAS__SUBSCRIBTION__ADD_NEW__CAR__ = "You already have subscribition:%d, would you like to add the new car %d to this subscribtion?";
		public static final String __USER_SUBSCRIBED_TO_SITE__SITE_A_THEREFOR_CANNOT_CHECK_IN_INTO__SITE_B__ = "%d subscribed to site:%s,therefor cannot check-in into site:%s";
		public static final String TODAYS_PARKING_NOT_ALLOWED_ACCORDING_TO_YOUR_SUB = "Today's parking not allowed according to your subscription";
		public static final String CAR__ID__DOESNT_MATCH_YOUR_SUBSCRIPTION = "Car %d doesn't match your subscription";
		public static final String YOU_CANNOT_ENTER_IN_BEFORE_AFTER_REGISTERED_ENTER_TIME = "You cannot enter before/after registered arrive date %s";
		public static final String FORM_SUBMITTED = "Your form was submitted.";
		public static final String __VALUE__IS_UPDATED = "%s is not holding up to date data\nRefreshing...";
		public static final String COMPLAINT_SUBMITED = "Your complaint was submitted.";
		public static final String COMPLAINT_UPDATED = "Complaint was updated in DB";
		public static final String COMPLAINT_REFUND_ISNT_VALID = "Refund must be more then 0";
		public static final String SITE_MAP_CANNOT__StatusA__A__StatusB__LOT = "You cannot %s a %s lot.";
		public static final String SITE__SiteName__APPEARS_TO_BE_FULL_TRY__SiteNameB = "Current %s is full, %s appears to have %d free lots, pls. try to park there";
		public static final String UNFORTUNATELY_ALL_SITE_FULL = "Unfortunately all site seems to be full.";
		public static final String THIS_CARID_DOSENT_FOUND = "Car %d not registred in this site.";
		public static final String CAR_RELEASED_ONE_TIME_USE = "Car %d was successfully released from parking lot, please pay %.2f.";
		public static final String PAYMENT_DONE = "your payment ahead is correct, thank you for using parking.";
		public static final String PAYMENT_REFUND = "Go to office you should get %.2f.";
		public static final String PAYMENT_PAY__Bill__ = "please pay the rest of bill %.2f";
		public static final String SUBSCRIBEL_PARKING_DONE = "Thank you for ussing our service.";
		public static final String SUBSCRIBEL_REMOVE_ERROR = "Sorry system error imposible to store your ID.";
		public static final String THIS_CAR_ALREADY_PARKED = "Sorry but car %d is registred on site already.";
		public static final String SUBSCRIPTION_REFUND__RefundValue__ = "Your account will be refunded with %.2f";
		public static final String CANNOT_BUY_NEW_SUBSCRIPTION_DATA_OVERLAPS__SubscriptionID__ = "Your cannot purchase subscription, because some of the data overlaps with your other subscription #%d";
		public static final String REQUESTD_SUBSCRIPTION_WILL_COST__VALUE__ = "Requested subscription will costs %.2f";
		public static final String PLEASE_SELECTED_A_ROW = "Pls. select a row before submitting.";
		public static final String MUST_FILL_START_AND_END_DATE = "Pls. choose start&end dates";
		public static final String YOU_PARKED_MORE_THAT_14_DAYS = "Pls. go to the office and confirm extra payment becouse you parked more that 14 days in row";
	}

	/**
	 * <p>
	 * class with legal string format for utilities
	 * </p>
	 * 
	 * @author VCP team
	 * 
	 */
	public class RegexStrings
	{
		public static final String CAR_ID_7_DIGITS = "^[0-9]{7,7}$";
		public static final String ID_10_DIGITS = "^[0-9]{1,10}$";

		public static final String EMAIL = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@" + "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";

		public static final String IP = "\\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\." + "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\." + "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\."
				+ "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b";

		public static final String PORT = "^[0-9]{1,5}$";
		public static final String ACCEPT_ALL = "^[^|^~]*$";
	}
}
